package com.panopset.app.panopset;

import java.awt.Dimension;

import javax.swing.JFrame;

import com.panopset.gui.PopupBox;

/**
 * About box.
 * @author Karl Dinwiddie.
 *
 */
public final class AboutBox extends PopupBox {

    /**
     * Default width is 500.
     */
    private static final int DEFAULT_WIDTH = 600;

    /**
     * Default height = 200.
     */
    private static final int DEFAULT_HEIGHT = 200;

    /**
     * About box.
     * @param title About box frame title.
     * @param parent About box parent frame.
     */
    public AboutBox(final String title, final JFrame parent) {
        super(new AboutCanvas(title), parent);
    }

    @Override
    protected Dimension createSize() {
        return new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT);
    }
}
